package com.nus.fellowmark.modules.user.controller;

import org.springframework.util.DigestUtils;

/**
 * @Description TODO
 * @Author xhl
 * @Date 2024/2/13 21:25
 **/
public class TestMain {
    public static void main(String[] args) {
        System.out.println(getMd5Password("Xionghl1*","881006D5-393D-422C-8404-5173F29438CD"));
    }
    private static  String getMd5Password(String password, String salt) {
        for (int i = 0; i < 3; i++) {
            password = DigestUtils.md5DigestAsHex((salt + password + salt).getBytes()).toUpperCase();
        }
        return password;
    }
}
